xen: rtds: Update last_start whenever cur_budget is updated
authorMeng Xu <mengxu@cis.upenn.edu>
Wed, 26 Oct 2016 19:06:29 +0000 (15:06 -0400)
committerWei Liu <wei.liu2@citrix.com>
Thu, 27 Oct 2016 13:58:18 +0000 (14:58 +0100)
commita418ec07cf2668197548c6503924139a2098e41d
tree8fbd21c948d28dcf9ab05e85c921a586fc44392c
parent514e5eb015cb2c7714a3a3320e4f49c55324c76a
xen: rtds: Update last_start whenever cur_budget is updated

Make budget accounting code more consistent by making sure the values
used to compute how much budget has been consumed are updated together.

This makes code resilient to calling burn_budget() from more than just
one place -- in case we will need to do that -- without risking subtle
bugs.

No functional changes are intended.

Signed-off-by: Meng Xu <mengxu@cis.upenn.edu>
Acked-by: Dario Faggioli <dario.faggioli@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/common/sched_rt.c